APICommonsServiceglobal with sharing class APICommonsService EnumsBatchJobType
APICommonsService.iBatchCallbackglobal interface iBatchCallback you can use the ibatchcallback global interface to hook into financialforce psa billing processes such as: Methods
beforeStartvoid beforeStart(APICommonsService.BatchContext bc) This method is called before the logic of the Start method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code afterStartvoid afterStart(APICommonsService.BatchContext bc) This method is called after the logic of the Start method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code beforeExecutevoid beforeExecute(APICommonsService.BatchContext bc, set<ID> scope) This method is called before the logic of the Execute method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code afterExecutevoid afterExecute(APICommonsService.BatchContext bc, set<ID> scope) This method is called after the logic of the Execute method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code beforeFinishvoid beforeFinish(APICommonsService.BatchContext bc) This method is called before the logic of the Finish method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code afterFinishvoid afterFinish(APICommonsService.BatchContext bc) This method is called after the logic of the Finish method of a batch is processed. Input Parameters
Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code getJobTypeBatchJobType getJobType() This method must be implemented by the creator of any class that implements the iBatchCallback interface. This indicates the FinancialForce PSA billing process that the class is to intends to implement. These FinancialForce PSA billing processes all confirm that the implemented type matches their identity: Return ValueThis method returns an APICommonsService.BatchJobType object. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. You need to provide some sample code APICommonsService.BatchContextglobal abstract class BatchContext batchcontext contains information about the context of the job. this is specific to each process and is based on the information used to launch that process. Properties
APICommonsService.BatchStatusglobal class BatchStatus contains the status, error message and batch id of a job. Properties
MethodsBatchStatusglobal BatchStatus(String status, String errorMessage, ID jobID) |